import http from '@/utils/request'

export default {

  async getMenuList() {
    return await http.get("/api/permission/list");
  },
  async getParentList() {
    return await http.get("/api/permission/parent/list");
  },
  async getMenuById() {
    return await http.get("/api/permission/getMenuById");
  },
  async add(params) {
    return await http.post("/api/permission/add",params);
  },
  async update(params) {
    return await http.put("/api/permission/update",params);
  },
  async delete(params) {
    return await http.delete("/api/permission/delete",params);
  },
  async check(params) {
    return await http.getRestApi("/api/permission/check",params);
  },
}